﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageCategory.aspx.cs" Inherits="client_ManageCategory" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Manage Category</title>
    <link href="../styles/client.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager EnablePartialRendering="true" ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="content_area">
        <h2>
        </h2>
        <div id="status_wrapper">
            <div class="status">
                <h3>
                    <asp:Label ID="lblTitle" runat="server" Style="font-size: medium; text-align: center;">Manage Component Types</asp:Label>
                </h3>
                <table id="selectedtable" runat="server" class="form_box1">
                    <tr>
                        <td class="label">
                            Select Category:
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownClientList" AutoPostBack="true" runat="server" OnSelectedIndexChanged="Component_Changed"
                                DataTextField="ComponentName" DataValueField="ComponentId" CssClass="DropDownList1">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
                <asp:UpdatePanel ID="upnl" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="TaskGridView" runat="server" AutoGenerateEditButton="True" AutoGenerateDeleteButton="True"
                            OnRowEditing="TaskGridView_RowEditing" OnRowCancelingEdit="TaskGridView_RowCancelingEdit"
                            OnRowUpdating="TaskGridView_RowUpdating" OnRowDeleting="TaskGridView_RowDeleting"
                            OnRowDataBound="TaskGridView_RowDataBound" AutoGenerateColumns="False">
                            <Columns>
                                <asp:TemplateField HeaderText="Attributes" SortExpression="Attributes">
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server">
                                        </asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="DropDownClientList" />
                    </Triggers>
                </asp:UpdatePanel>
                <table class="form_box2">
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Attribute:" CssClass="label1"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtAttribute" runat="server" CssClass="fields"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="Get_Button" runat="server" Text="Add Attribute" OnClick="AddAttribute" CssClass="buttons" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="save" runat="server" Text="Submit Edit" OnClick="Button1_Click" CssClass="buttons" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
